<?php

namespace app\validate\home;

use app\common\validate\BaseValidate;

class WxMessage extends BaseValidate
{
    //定义验证规则
    protected $rule = [
        'form_id|表单提交ID' => 'require|number',
    ];
    //定义验证场景要与方法名相同走自动验证
    protected $scene = [
        'book_to_assistant' => ['form_id']
    ];
}